package mysql

import "gorm.io/gorm"

// 课程分类
type KeFenLe struct {
	gorm.Model
	FenLeName string `gorm:"type:varchar(30);comment:分类名称;"`
	Pid       int    `gorm:"type:int(10);comment:父级id;"`
}

// 课程方向
type KeFanXian struct {
	gorm.Model
	FanXianName string `gorm:"type:varchar(30);comment:方向名称;"`
	Pid         int    `gorm:"type:int(10);comment:父级id;"`
}

// 购物车
type GoWuc struct {
	gorm.Model
	ShopTitle string  `gorm:"type:varchar(30);comment:课程标题;"`
	Num       int     `gorm:"type:varchar(30);comment:购买数量;"`
	Price     float64 `gorm:"type:varchar(30);comment:价格;"`
}
